﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace datorgrafik_2
{
    abstract class GameObject
    {
        protected List<GameObject> children;

        protected Vector3 position;
        protected Quaternion rotation;

        protected GraphicsDevice graphicsDevice;

        /// <summary>
        /// Initializes a new instance of the <see cref="GameObject"/> class.
        /// </summary>
        /// <param name="graphicsDevice">The graphics device.</param>
        public GameObject(GraphicsDevice graphicsDevice)
        {
            this.graphicsDevice = graphicsDevice;
            children = new List<GameObject>();
        }


        public virtual void Update(GameTime gameTime)
        {
        }

        /// <summary>
        /// Gets the rotation.
        /// </summary>
        /// <returns></returns>
        public Quaternion GetRotation()
        {
            return rotation;
        }

        /// <summary>
        /// Gets the posistion of the bee.
        /// </summary>
        /// <returns></returns>
        public Vector3 GetPosition()
        {
            return position;
        }
    }
}
